-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
86f0a80
to
f8d8d1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits as always.
sucessfully → successfully
pdist/pdist
Outdated
|
||
if ( !$fileop_noop && $force_status) { | ||
my $t=time; | ||
open L,'>','/.PDIST_STATUS' or die "/.PDIST_STATUS: $!\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we write it lowercase .pdist_status
? At least for me, that’s easier to type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I mirrored what pmirror does ( ".PMIRROR_STATUS" ) but I don't really care.
pdist/pdist
Outdated
@@ -1186,6 +1195,7 @@ usage: $0 cmd [options] | |||
--fileop_debug # log all file operations | |||
--[no]delete # do or do not clean up additional files on client. | |||
# default is delete unless --files is used | |||
--force_status # force creation of /.PDIST_STATUS on target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is there a pattern, when to use - and _? I’d prefer
--force-status
. - Why force and not create for example, or
--set-pdist-status
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Again, I've copy-pasted from pmirror. I change that into --set-pdist-status
fdae58b
to
2720ef3
Compare
Add option --set-pdist-status. This option make the client write a status file /.pdist_status when everything completed successfully. It is supposed to be used only during full dists from the distmaster. The idea is that health check scripts can look at the status file and the embededed time tag to find out when a system was successfully updated and generate an alarm if this is to long in the past.
2720ef3
to
cfe4db8
Compare
Add option --set-pdist-status. This option make the client write a status
file /.pdist_status when everything completed successfully. It is
supposed to be used only during full dists from the distmaster.
The idea is that health check scripts can look at the status file and
the embededed time tag to find out when a system was successfully
updated generate an alarm if this is to long in the past.